<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

		<title><?=_("Log Manager")?></title>

		<link rel="stylesheet" type="text/css" href="/css/log.css" />
	</head>
	<body>
		<div id="page">
			<div id="p">
				<h1><?=_("Log Manager")?></h1>
				<p><?=_("With this plugin you can record in your database logs generated by the errors and exceptions in your application")?></p>
				<?php
				if($data->pass)
				{
					if($data->countError + $data->countException > 0)
					{
						?>
						<p>
						<?
						if($data->countError)
						{
							?><a href="/log/errors" class="button"><?=_("Show all errors")?></a><?php
						}
						if($data->countException)
						{
							?><a href="/log/exceptions" class="button"><?=_("Show all exceptions")?></a><?php
						}
						?>
						</p>
						<div class="sepa10"></div>
						<p><?=sprintf(_("%s errors recorded"), $data->countError)?></p>
						<p class="m0 p0"><?=sprintf(_("%s exceptions recorded"), $data->countException)?></p>
						<?php
					}
					else
					{
						?><h3><?=_("No error or exception recorded")?></h3><?php
					}
				}
				else
				{
					?><h3><?=_("The plugin not instanced before load controller")?></h3><?php
				}
				?>
			</div>
		</div>
		<div id="footer">
			<h4><?=_("Bxd framework - LOG plugin")?></h4>
		</div>
    </body>
</html>
